import 'package:flutter/material.dart';

class SayHelloAudioPage extends StatefulWidget {
  const SayHelloAudioPage({Key? key, required this.addHelloText})
      : super(key: key);
  // String testStr;
  final Function addHelloText;
  @override
  State<SayHelloAudioPage> createState() => _SayHelloAudioPageState();
}

class _SayHelloAudioPageState extends State<SayHelloAudioPage> {
  @override
  Widget build(BuildContext context) {
    return Center(
        child: GestureDetector(
      child: const Text('打招呼 - 语音'),
      onTap: () {
        widget.addHelloText();
      },
    ));
  }
}
